<include file="Public/header"/>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

<?php 
$con =mysql_connect('localhost','root','');
if (!$con) {
    die('数据库不存在'.mysql_errno());
}
mysql_set_charset('utf8');
//设置字符集
$db=mysql_select_db('study',$con);
$sql='select * from practices where id='.$_GET['id'];
        $result=mysql_query($sql,$con); 
        while ($row=mysql_fetch_assoc($result)) 
        {
            echo'<h1>社团活动名称：'.$row['name'].'</h1>';
        }
?>
<volist name="users" id="vo">
<form action="doaddPracticeUser"  method="post"  class="form-horizontal">
<table border  width="80%" class="table table-striped table-bordered table-hover">
<div>
<input type="hidden" name="pid" value="{$_GET['id']}"></input>
    <div class="form-group">
    <label for="realname" class="col-sm-2 control-label">姓名:</label>
    <div class="col-sm-6">
    <input type="text" class="form-control" id="realname" name="realname" value="{$vo.realname}">
    </div></div>

     <div class="form-group">
    <label for="stunum" class="col-sm-2 control-label">学号:</label>
    <div class="col-sm-6">
    <input type="text" class="form-control" id="stunum" name="stunum" value="{$vo.stunum}">
    </div></div>
    

    <input type="hidden" name="state" value="1"></input>
    <div class="form-group">
    <div class="col-sm-offset-2  col-sm-6">
	<button type="submit" class="btn btn-default">添加</button>
    </div></div></div>
</form></volist>


<include file="Public/footer"/>